package com.huawei.aiservice.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_defect")
public class Defect {
    @TableId(type = com.baomidou.mybatisplus.annotation.IdType.AUTO)
    private int defectId;

    private int fileRuleId;

    @JsonProperty("problematic sentence")
    private String problematicSentence;

    @JsonProperty("reference sentence")
    private String referenceSentence;

    @JsonProperty("reason")
    private String reason;

    @JsonProperty("fixed sentence")
    private String fixedSentence;

    private int problematicLineNum;
}
